import {customeStruct} from '../utils';
const itf = customeStruct.interface;

export const InitDataStruct = itf({
    payload: itf({
        isDealerUser: 'boolean',
    })
});

const content = {
    id: 'string',
    branchCode: 'string',
    dealerCode: 'string',
    departmentCode: 'string',
    lenderControlScope: 'string',
    customercreditlimit: 'number',
};

export const List = itf({
    payload: itf({
        content: [itf(Object.assign(content))]
    })
});

